﻿using System.Collections.Generic;
using System.Linq;

namespace Pap.Data
{
    /// <summary>
    /// 
    /// </summary>
    public partial class Permission : IPermission
    {
        #region IPermission Members


        /// <summary>
        /// Gets the roles.
        /// </summary>
        public IEnumerable<IRole> Roles
        {
            get { return this.RolesPermissions.Select(t => t.Role).OfType<IRole>(); }
        }

        #endregion
    }
}
